//window.status='normstar';
//$(function(){
	//var bdy = (document.documentElement && document.documentElement.clientWidth) ? document.documentElement : document.body;
	//$('#man_zone').css('height', bdy.clientHeight-30);
//});


// 根据文件后缀名判断上传文件是否合法 
lastname = function (filepath, tp){
	var re = /(\\+)/g; 
	var filename = filepath.replace(re,"#");
	var one = filename.split("#");
	var two = one[one.length-1];
	var three = two.split(".");
	var last = three[three.length-1];
	var rs = tp.indexOf(last.toLowerCase());
	if(rs >= 0){return true;}
	else{return false;}
}

// 判断字符串是否在数组中
inArray = function (id, aId){
	for (var i in aId){
		if (id == aId[i]){
			return true;
		}
	}
	return false;
}

//本页转向
locHref = function (url){
	window.location.href = url;
	
	// window.opener.location.reload();
}


//进度条 set 添加 del 删除
gLoadingMake = function (types){
	if (types == 'set'){var loadimg = '<div class="loadimg"><img src="common/images/common/loading2.gif"/></div>';
	$(window.document.body).append(loadimg);}
	else if (types == 'del'){$(".loadimg").remove();}
}

// 添加收藏夹  很多浏览器不支持了  比如 360 ff  还是不要这个功能了
function g_addFavorite(title, url) {try{window.external.addFavorite(url, title);}catch (e){try{window.sidebar.addPanel(title, url, "");}catch (e){alert("您的浏览器不支持,请按 Ctrl+D 手动收藏!");}}}


